import React, { useMemo } from 'react';

const Hello = (props) => {
    const { title } = props;
    return useMemo(() => {
        return React.createElement(
            'div',
            { className: ['hello-container'].join(' ') },
            React.createElement('span', { className: 'hello-text' }, title),
        );
    }, [title]);
};
Hello.defaultProps = {
    title: '默认title',
};

export { Hello };
